<?php
	switch($code[0]){
		case '200' : header("HTTP/1.0 200 OK"); $text = "Status:"; break;
		case '201' : header("HTTP/1.0 201 Created"); $text = "Status:"; break;
		
		case '403' : header("HTTP/1.0 403 Forbidden"); $text = "Error:"; break;
		case '404' : header("HTTP/1.0 404 Not Found"); $text = "Error:"; break;
		
		case '412' : header("HTTP/1.0 412 Precondition Failed");  $text = "Error:"; break;
		
		case '500' : header("HTTP/1.0 500 Internal Server Error"); $text = "Error:"; break;
		
		default : header("HTTP/1.0 500 Internal Server Error"); $text = "Error:"; break;
	}
	echo "<h1>";
	echo $text;
 	echo $code[0];
	echo "</h1>";
	echo "Description: ".$code[1];
?>